import request from "@/utils/request";

// 查询预约（个人）列表
export function listOrder(query) {
  return request({
    url: "/system/order/list",
    method: "get",
    params: query,
  });
}

// 查询预约（个人）详细
export function getOrder(id) {
  return request({
    url: "/system/order/" + id,
    method: "get",
  });
}

// 查询预约（个人）详细
export function getOrderById(id) {
  return request({
    url: "/system/order/getById",
    method: "get",
    params: {
      id: id,
    },
  });
}

// 新增预约（个人）
export function addOrder(data) {
  return request({
    url: "/system/order",
    method: "post",
    data: data,
  });
}

// 修改预约（个人）
export function updateOrder(data) {
  return request({
    url: "/system/order",
    method: "put",
    data: data,
  });
}

// 删除预约（个人）
export function delOrder(id) {
  return request({
    url: "/system/order/" + id,
    method: "delete",
  });
}
